<?php
require_once '../include/common.inc.php';

if (!checkAdmin()) {
    header("LOCATION:index.php");
    exit;
}
$menu_index = 1;
$page_title = 'TABLA';
$guide_message = 'Product | Vat ';

$sql_vat="select pro_value from pro_values  where pro_key='vat'";
$ary=$db->get_one($sql_vat);
if($ary["pro_value"]!="")
{
	$vat=$ary['pro_value'];
}
else
{
	$vat=10;
	$sql="INSERT INTO `pro_values` (`pro_key` , `pro_value` ) 
	VALUES ('vat', '$vat'	);";
	$mysql->query($sql);	
}


include_once('menu_list.php');
require_once PrintEot('a_header');
require_once PrintEot('a_p_product_vat');
require_once PrintEot('a_footer');
?>
